﻿<%@ Page Title="Home" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="AnimeLibrary._default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <h1>Recently Added</h1>
    <br />
    <asp:Repeater ID="rptAnimeLibraryList" runat="server">
        <HeaderTemplate><div id="AnimeLibraryList"></HeaderTemplate>
        <ItemTemplate>
                <div id="AnimeLibraryList_Row">
                    <div id="AnimeLibraryList_Row_Header">
                        <a href='<%# string.Format("details.aspx?item={0}", Eval("ID")) %>'>
                            <img id="imgThumbnail" src='<%# Eval("ThumbnailLocation").ToString() %>' alt="Click for more details..." />
                        </a>
                    </div>
                    <div id="AnimeLibraryList_Row_Title">
                        <%# Eval("Title") %>
                    </div>
                    <div id="AnimeLibraryList_Row_Content">
                        Author: <%# Eval("Author") %>
                        <br />
                        No of Episodes: <%# Eval("TotalEpisodes") %>
                    </div>
                    <br />
                    <div id="AnimeLibraryList_Row_Footer">
                        <a href='<%# string.Format("details.aspx?item={0}", Eval("ID")) %>'>More Details...</a>
                    </div>
                </div>
        </ItemTemplate>
        <FooterTemplate></div></FooterTemplate>
    </asp:Repeater>
</asp:Content>
